#include <iostream>
using std::cout;
using std::endl;

//递归的出口
void print(){
    cout << endl;
    cout << "出口一" << endl;
}

void print(double x){
    cout << x << endl;
    cout << "出口二" << endl;
}
//Args代表模板参数包
//args代表函数参数包
//省略号在包的左边理解为打包
//省略号在包的右边理解为解包
template <class T, class ...Args>
void print(T x, Args ...args)
{
    cout << x << " ";
    print(args...);
}

void test0(){
    //cout << 1 << " ";
    //print("hello",'c',5.6,true);
    //  cout << "hello" << " ";
    //  print('c',5.6,true);
    //      
    //
    //      cout << true << " ";
    //      print();
    print(1,"hello",'c',5.6,true);
    print(1,"hello",'c',5.6,true,8.5);

}

int main(void){
    test0();
    return 0;
}
